package xdu.lz.stage3_classloader.chapter1;

public class LoaderTest {

    private static LoaderTest instance = new LoaderTest();

    public static int x = 0;

    public static int y;

    private LoaderTest() {
        x++;
        y++;
    }

    public static LoaderTest getInstance() {
        return instance;
    }

    public static void main(String[] args) {

        LoaderTest instance = LoaderTest.getInstance();
        System.out.println("x:"+LoaderTest.x);
        System.out.println("y:"+LoaderTest.y);
    }
}
